package com.zxing.permission;

import android.app.Activity;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

/**
 * Created by njb on 2017/07/13.
 */

public interface IPermissionsChecker {
    String[] lacksPermissions(String... permissions);

    void requestPermissions(PermissionsChecker.OnPermissionsResultListener listener, Activity activity, String... permissions);

    void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults);

    void showMissingPermissionDialog(@Nullable DialogInterface.OnClickListener negativeListener, @Nullable DialogInterface.OnClickListener positiveListener);

    void showMissingPermissionDialog(@Nullable DialogInterface.OnClickListener negativeListener);

    void startAppSettings();
}
